add support for cmake build options (#809)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Tue, 4 Jan 2022 20:19:56 +0000 (13:19 -0700)
committerGitHub <noreply@github.com>
Tue, 4 Jan 2022 20:19:56 +0000 (13:19 -0700)
commit5c7cddae91527d9d2e971df64e3a0d5f02b50f1b
treecb72012cbf439c6de982f7ba2dfb9e6d07b7c30f
parentb6c9a6c2c96b2b6ef5a227886b9ac4a49aa7d944
add support for cmake build options (#809)

* add initial support for cmake build options.

including basic library configuration.
Unlike our qmake build it generates and links with static libraries if
we are using our internally supplied copies.  The configuration options
are not as sophisticated as in our qmake build.  The configuration of
zlib will likely be acceptable as cmake provides support via findZLIB.
The configuration of shapelib and libusb-1.0 likely will likely need to
be enhanced.

* fix typo

* mimic qmake library searches.

too much energy went into verification with packagers that the
qmake options were sufficient for their needs.

* tweak library searches
CMakeLists.txt
gui/CMakeLists.txt
jeeps/gpslibusb.cc
libusb.cmake [new file with mode: 0644]
shapelib.cmake [new file with mode: 0644]
zlib.cmake [new file with mode: 0644]